package com.zktr.pojo;

/**
 * 商品分类实体类
 * @author Lenovo-syq
 *
 */
public class Category {
	private int catid;
	private String catname;//分类名称
	private String keywords;//分类的关键字，可能为了搜索
	private String catdesc;//分类描述
	private int parentid;//该分类的父id
	private boolean showinnav;//是否显示在导航栏,0不;1显示
	private boolean isshow;//是否在前台显示
	private int grade;//该分类的最高和最低价之间的价格分级,当大于1时,会根据最大最小价格区间分成区间,会在页面显示价格范围,如0-300,300-600,600-900这种; 

	public int getCatid() {
		return catid;
	}
	public void setCatid(int catid) {
		this.catid = catid;
	}
	public String getCatname() {
		return catname;
	}
	public void setCatname(String catname) {
		this.catname = catname;
	}
	public String getKeywords() {
		return keywords;
	}
	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}
	public String getCatdesc() {
		return catdesc;
	}
	public void setCatdesc(String catdesc) {
		this.catdesc = catdesc;
	}
	public int getParentid() {
		return parentid;
	}
	public void setParentid(int parentid) {
		this.parentid = parentid;
	}
	public boolean getShowinnav() {
		return showinnav;
	}
	public void setShowinnav(boolean showinnav) {
		this.showinnav = showinnav;
	}
	public boolean getIsshow() {
		return isshow;
	}
	public void setIsshow(boolean isshow) {
		this.isshow = isshow;
	}
	public int getGrade() {
		return grade;
	}
	public void setGrade(int grade) {
		this.grade = grade;
	}
	@Override
	public String toString() {
		return "Category [catid=" + catid + ", catname=" + catname + ", keywords=" + keywords + ", catdesc=" + catdesc
				+ ", parentid=" + parentid + ", showinnav=" + showinnav + ", isshow=" + isshow + ", grade=" + grade
				+ "]";
	}
	public Category(int catid, String catname, String keywords, String catdesc, int parentid, boolean showinnav, boolean isshow,
			int grade) {
		this.catid = catid;
		this.catname = catname;
		this.keywords = keywords;
		this.catdesc = catdesc;
		this.parentid = parentid;
		this.showinnav = showinnav;
		this.isshow = isshow;
		this.grade = grade;
	}
	public Category() {
	}

	public Category(String catname){
		this.catname=catname;
	}

}
